package com.addressbook.tests;

import org.testng.Assert;
import org.testng.annotations.Test;

import com.addressbook.fw.Contact;

public class ContactDeletionTests extends TestBase {
   
	@Test
    public void testDeleteContact() {
            
            //note that this test works only when there are >1 contacts in the list
            Contact contactToDelete = app.getContactHelper().getFirstContact();     
            app.getContactHelper().removeContact();
            Contact nextContact = app.getContactHelper().getFirstContact();
            Assert.assertNotEquals(contactToDelete, nextContact);
    }

}
